package main

import "fmt"

type A struct {
	a1  string
	a2  string
	age int
}

type B struct {
	b1  string
	b2  string
	age int
}

type C struct {
	a A
	b B
	c int
}

func main() {
	c := C{A{"xiao", "ming", 12}, B{"xiao", "li", 13}, 14}
	fmt.Println(c)
	fmt.Println(c.a)
	fmt.Println(c.b)
	fmt.Println(c.c)

}
